Telegram Group & Telegram Channel
​​DeepGit: HEAD

Забыл в последней статье упомянуть про HEAD.
В файле .git/HEAD лежит ссылка на рефернс.

 09:32:21 in tmp/git_/first on  master •99%
➜ cat .git/HEAD
ref: refs/heads/master


С помощью команды

 git symbolic-ref HEAD refs/heads/<branch_name>


Можно ставить HEAD.

Теперь можно полностью понять как работает git checkout <branch> .

  cat .git/HEAD
cat <ref_path>
git cat-file -p <commit_hash>
git cat-file -p <tree_hash>


И дальше уже проходим по blob-ам, и записываем туда версии.

P.S Это весьма топорная реализация git checkout , на самом деле все работает немного иначе.
Впереди нас еще ждет статья про pack файлы и про то, как git оптимизирует хранение файлов.



tg-me.com/developer_tools/254
Create:
Last Update:

​​DeepGit: HEAD

Забыл в последней статье упомянуть про HEAD.
В файле .git/HEAD лежит ссылка на рефернс.

 09:32:21 in tmp/git_/first on  master •99%
➜ cat .git/HEAD
ref: refs/heads/master


С помощью команды

 git symbolic-ref HEAD refs/heads/<branch_name>


Можно ставить HEAD.

Теперь можно полностью понять как работает git checkout <branch> .

  cat .git/HEAD
cat <ref_path>
git cat-file -p <commit_hash>
git cat-file -p <tree_hash>


И дальше уже проходим по blob-ам, и записываем туда версии.

P.S Это весьма топорная реализация git checkout , на самом деле все работает немного иначе.
Впереди нас еще ждет статья про pack файлы и про то, как git оптимизирует хранение файлов.

BY Dev Tools


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/developer_tools/254

View MORE
Open in Telegram


Dev Tools Telegram | DID YOU KNOW?

Date: |

Find Channels On Telegram?

Telegram is an aspiring new messaging app that’s taking the world by storm. The app is free, fast, and claims to be one of the safest messengers around. It allows people to connect easily, without any boundaries.You can use channels on Telegram, which are similar to Facebook pages. If you’re wondering how to find channels on Telegram, you’re in the right place. Keep reading and you’ll find out how. Also, you’ll learn more about channels, creating channels yourself, and the difference between private and public Telegram channels.

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

Dev Tools from id


Telegram Dev Tools
FROM USA